<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">用户操作管理</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li><a href="{:url('AdminUserAction/index')}">用户操作管理</a></li>
                                <li class="layui-this"><a>编辑用户操作</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form method="post" class="layui-form js-ajax-form" action="{:url('AdminUserAction/editPost')}">
                                        <div class="layui-form-item">
                                            <label for="input-score" class="layui-form-label">积分</label>
                                            <div class="layui-input-block">
                                                <input type="text" class="layui-input" id="input-score" name="score" value="{$score}">
                                                <p class="layui-word-aux">用户操作时积分更改，可以为负</p>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-coin" class="layui-form-label">金币</label>
                                            <div class="layui-input-block">
                                                <input type="text" class="layui-input" id="input-coin" name="coin" value="{$coin}">
                                                <p class="layui-word-aux">用户操作时金币更改，可以为负</p>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-cycle_type" class="layui-form-label">周期类型</label>
                                            <div class="layui-input-block">
                                                <select name="cycle_type" id="input-cycle_type">
                                                    <option value="0">不限</option>
                                                    <option value="1">天</option>
                                                    <option value="2">小时</option>
                                                    <option value="3">永久</option>
                                                </select>
                                                <p class="layui-word-aux">用户操作时奖励周期类型</p>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-cycle_time" class="layui-form-label">周期时间</label>
                                            <div class="layui-input-block">
                                                <input type="text" class="layui-input" id="input-cycle_time" name="cycle_time" value="{$cycle_time}">
                                                <p class="layui-word-aux">用户操作时奖励周期时间</p>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-reward_number" class="layui-form-label">奖励次数</label>
                                            <div class="layui-input-block">
                                                <input type="text" class="layui-input" id="input-reward_number" name="reward_number" value="{$reward_number}">
                                                <p class="layui-word-aux layui-form-mid">用户操作时奖励次数</p>
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-layout-admin">
                                            <div class="layui-input-block">
                                                <div class="layui-footer" style="left:0;">
                                                    <input type="hidden" name="id" value="{$id}">
                                                    <button type="submit" class="layui-btn layui-btn js-ajax-submit">{:lang('SAVE')}</button>
                                                    <a class="layui-btn layui-btn-primary" href="{:url('AdminUserAction/index')}">{:lang('BACK')}</a>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
    <script>
    $('#input-cycle_type').val("{$cycle_type}");
    </script>
</body>

</html>